package com.myproject.collection;

import java.util.concurrent.BlockingQueue;
import java.util.concurrent.LinkedBlockingQueue;

public class BlockingQueueTest {

    public static void main(String[] args) throws InterruptedException {
        BlockingQueue<String> queue = new LinkedBlockingQueue<>();
        for (int i = 0; i < 11; i++) {
            queue.put("hello");
            System.out.println(i);

        }
    }
}
